package com.ztools;

import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.TextView;

import com.blankj.utilcode.util.ToastUtils;
import com.ztools.viewbinder.InjectViewUtils;
import com.ztools.viewbinder.annotation.BindView;
import com.ztools.fragment.BlankFragment;

public class MainActivity extends AppCompatActivity {

    @BindView(R.id.tv)
    TextView tv;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        InjectViewUtils.bindView(this);
        tv.setText("aaaaa");
        tv.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                ToastUtils.showShort("aaaaaa");
            }
        });
        BlankFragment.newInstance("", "");
    }
}
